<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html lang="zh">
<head>
    <%@include file="/lyear/common/head.jsp" %>
</head>

<body>

<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--左侧导航-->
        <%@include file="/lyear/common/aside.jsp" %>
        <!--End 左侧导航-->

        <!--头部信息-->
        <%@include file="/lyear/common/top.jsp" %>
        <!--End 头部信息-->

        <!--页面主要内容-->
        <!--页面主要内容-->
        <main class="lyear-layout-content" style="background-color: white">
            <div class="container-fluid">

            <h1>添加项目</h1>
            <form  action="${pageContext.request.contextPath}/proj/addProj" method="post" enctype="multipart/form-data">
                <div class="form-group">
                    <label for="picture" class="control-label">项目首图</label>
                    <input type="file" class="form-control" id="picture" name="picture" value=""  />
                </div>

                <div class="form-group">
                    <label for="name" class="control-label">项目名称</label>
                    <input type="text" class="form-control" id="name" name="name">
                </div>

                <div class="form-group">
                    <label for="categoryName">所属分类</label>
                    <br>
                    <c:forEach items="${categoryList}" var="category">
                        <input type="checkbox" name="categoryName" value="${category.name}" id="categoryName">
                        <span>${category.name}</span>&nbsp;&nbsp;&nbsp;
                    </c:forEach>
                </div>

                <div class="form-group">
                    <label for="url" class="control-label">项目路径</label>
                    <input type="text" class="form-control" id="url" name="url">
                </div>
                <div class="form-group">
                    <label for="info" class="control-label">项目简介</label>
                    <input type="text" class="form-control" id="info" name="info">
                </div>
                <div class="form-group">
                    <label for="authorName" class="control-label">作者</label>
                    <input type="text" class="form-control" id="authorName" name="authorName">
                </div>
                <div class="form-group">
                    <label for="technologyName" >技术</label>
                    <br>
                    <c:forEach items="${technologyList}" var="technology">
                        <input type="checkbox" name="technologyName" value="${technology.name}" id="technologyName"><span>${technology.name}</span>&nbsp;&nbsp;&nbsp;
                    </c:forEach>
                </div>

                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary" id="addProj">提交</button>
                </div>

            </form>
            </div>
        </main>
        <!--End 页面主要内容-->
        <!--End 页面主要内容-->
    </div>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath}/lyear/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/lyear/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/lyear/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/lyear/js/main.min.js"></script>
<!--对话框-->
<script src="${pageContext.request.contextPath}/lyear/js/jconfirm/jquery-confirm.min.js"></script>
<!--标签插件-->
<script src="${pageContext.request.contextPath}/lyear/js/jquery-tags-input/jquery.tagsinput.min.js"></script>

<script type="text/javascript">

</script>
</body>
</html>